package com.nuoniu.sibanyun.service.so;

import com.baomidou.mybatisplus.extension.service.IService;
import com.nuoniu.sibanyun.entity.bo.UnExecutedBo;
import com.nuoniu.sibanyun.entity.so.VSaleDeliveryDetail;

import java.util.List;

/**
 * <p>
 * 销售发货单明细 服务类
 * </p>
 *
 * @author 小啊刚
 * @since 2020-12-07
 */
public interface IVSaleDeliveryDetailService extends IService<VSaleDeliveryDetail> {

    /**
     * 根据数据来源获取
     * @author 小啊刚
     * @date 2020-12-16
     */
    List<VSaleDeliveryDetail> getBySourceId(Long id);


    List<VSaleDeliveryDetail> getDetailsByOrderId(Long orderId);



    List<VSaleDeliveryDetail> getSimpleDetailsByOrderId(Long orderId);
    /**
     * 获取 销售退货 未执行数量 情况
     * @param inventoryIds
     * @return
     */
    List<UnExecutedBo> getRetUnExecuteQuantity(String inventoryIds,String warehouseIds);
}
